import { constantRoutes } from '@/router/index'// 静态路由
export default {
  namespaced: true,
  state() {
    return {
      menuList: []
    }
  },
  mutations: {
    // 把动态路由添加到菜单
    setMenuList(state, asyncRoutes) {
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}
